<?php


namespace App\Models\Chat;
use App\Models\Api\Files;
use App\Models\CarModels\CarArea;
use App\Models\SystemManagement\Department;
use App\Models\SystemManagement\DepartmentEmployee;
use App\Models\SystemManagement\Employee;
use App\Models\SystemManagement\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Facade;
use DB;
class ChatEmployeeMessage extends Model
{
    protected $table = 'chat_employee_message';
    protected $fillable = ['receiver_id','sender_id','message','file_id'];

    function sender()
    {
        return $this->belongsTo(Employee::class,'sender_id');
    }

    function file()
    {
        return $this->belongsTo(Files::class,'file_id');
    }
}